home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 May / PCWMAY06.iso / Software / Freeware / First Page 2006 3.00 / fp2006-final-3.00-setup.exe / {app} / Iscripts / Links / wheel-links.izs < prev   
Text File  |  2005-08-07  |  4KB  |  114 lines

  1. <!NOWIZARD>
  2.  
  3. <!TITLE>Wheel of links
  4. <!/TITLE>
  5.  
  6. <!DESCRIPTION>We are constantly thinking up of fun ways for your surfers to navigate the WWW from your site...that's why we created this "wheel of links" script. Take the wheel for a spin, and see where you end up!
  7. <!/DESCRIPTION> 
  8.  
  9. <!CATEGORY>links<!/CATEGORY>
  10.  
  11. <!SCRIPT>
  12. <!-- START OF SCRIPT -->
  13. <script>
  14.  
  15. var count=0
  16. function dothis(){
  17. setTimeout("document.wheel.wheel2.selectedIndex =1000",100)
  18. setTimeout("document.wheel.wheel2.selectedIndex =count",200)
  19. setTimeout("document.wheel.wheel2.selectedIndex =1000",300)
  20. setTimeout("document.wheel.wheel2.selectedIndex =count",400)
  21. setTimeout("document.wheel.wheel2.selectedIndex =1000",500)
  22. setTimeout("document.wheel.wheel2.selectedIndex =count",600)
  23. setTimeout("window.location=document.wheel.wheel2.options[document.wheel.wheel2.selectedIndex].value",800)
  24. }
  25.  
  26. function animate(){
  27. var countfinal=Math.round(Math.random()*(document.wheel.wheel2.length-1))
  28. document.wheel.wheel2.selectedIndex =count
  29. if (count==countfinal){
  30. dothis()
  31. return
  32. }
  33. if (count<document.wheel.wheel2.length)
  34. count++
  35. else
  36. count=0
  37. setTimeout("animate()",50)
  38.  
  39. </script>
  40.  
  41.  
  42. <form method="POST" name="wheel">
  43.   <div align="center"><center><p><select name="wheel2" size="8">
  44.     <option value="http://dynamicdrive.com">Dynamic Drive</option>
  45.     <option value="http://www.cnn.com">CNN</option>
  46.     <option value="http://www.news.com">News.com</option>
  47.     <option value="http://www.techweb.com">Tech Web</option>
  48.     <option value="http://www.freewarejava.com">Freewarejava.com</option>
  49.     <option value="http://www.virtualis.com/vr/gchiang">Virtualis Web Hosting</option>
  50.     <option value="http://www.geocities.com">Geocities</option>
  51.     <option value="http://www.abcnews.com">ABCnews.com</option>
  52.   </select></p>
  53.   </center></div><div align="center"><center><p><input type="button" value="Spin wheel!"
  54.   name="B1" onClick="animate()"></p>
  55.   </center></div>
  56. </form>
  57.  
  58. <!-- END OF SCRIPT -->
  59. <!/SCRIPT>
  60.  
  61. <!PREVIEW>
  62. <!-- START OF SCRIPT -->
  63. <script>
  64.  
  65. var count=0
  66. function dothis(){
  67. setTimeout("document.wheel.wheel2.selectedIndex =1000",100)
  68. setTimeout("document.wheel.wheel2.selectedIndex =count",200)
  69. setTimeout("document.wheel.wheel2.selectedIndex =1000",300)
  70. setTimeout("document.wheel.wheel2.selectedIndex =count",400)
  71. setTimeout("document.wheel.wheel2.selectedIndex =1000",500)
  72. setTimeout("document.wheel.wheel2.selectedIndex =count",600)
  73. setTimeout("window.location=document.wheel.wheel2.options[document.wheel.wheel2.selectedIndex].value",800)
  74. }
  75.  
  76. function animate(){
  77. var countfinal=Math.round(Math.random()*(document.wheel.wheel2.length-1))
  78. document.wheel.wheel2.selectedIndex =count
  79. if (count==countfinal){
  80. dothis()
  81. return
  82. }
  83. if (count<document.wheel.wheel2.length)
  84. count++
  85. else
  86. count=0
  87. setTimeout("animate()",50)
  88.  
  89. </script>
  90.  
  91.  
  92. <form method="POST" name="wheel">
  93.   <div align="center"><center><p><select name="wheel2" size="8">
  94.     <option value="http://dynamicdrive.com">Dynamic Drive</option>
  95.     <option value="http://www.cnn.com">CNN</option>
  96.     <option value="http://www.news.com">News.com</option>
  97.     <option value="http://www.techweb.com">Tech Web</option>
  98.     <option value="http://www.freewarejava.com">Freewarejava.com</option>
  99.     <option value="http://www.virtualis.com/vr/gchiang">Virtualis Web Hosting</option>
  100.     <option value="http://www.geocities.com">Geocities</option>
  101.     <option value="http://www.abcnews.com">ABCnews.com</option>
  102.   </select></p>
  103.   </center></div><div align="center"><center><p><input type="button" value="Spin wheel!"
  104.   name="B1" onClick="animate()"></p>
  105.   </center></div>
  106. </form>
  107.  
  108.  
  109. <!-- END OF SCRIPT -->
  110. <!/PREVIEW>
  111.  
  112. <!RELATED>NONE<!/RELATED>